A strongly-typed sequence of 2 variously typed values.
- T1
- The first value type.
- T2
- The second value type.
A Tuple is an immutable, strongly typed sequence of variously typed values with each value lacking an otherwise meaningful name aside from its position.
Namespace: Cadenza
Assembly: Cadenza (in Cadenza.dll)
Assembly Versions: 0.1.0.0
See Also: Inherited members from object.
⊟ Public Constructors
Tuple (T1, T2)Constructs and initializes a new Cadenza.Tuple<T1, T2> instance. ⊟ Public Properties
⊟ Public Methods
⊟ Extension Methods
⊟ Tuple Constructor
Constructs and initializes a new Cadenza.Tuple<T1, T2> instance.
public Tuple (T1 item1, T2 item2)⊟ Parameters
- item1
- A T1 which is used to initialize the Tuple<T1, T2>.Item1 property.
- item2
- A T2 which is used to initialize the Tuple<T1, T2>.Item2 property.
⊟ Remarks
Constructs and initializes a new Cadenza.Tuple<T1, T2> instance.⊟ Requirements
Namespace: Cadenza
Assembly: Cadenza (in Cadenza.dll)
Assembly Versions: 0.1.0.0
⊟ Equals Method
Determines whether the current instance and the specified object have the same value.
⊟ Parameters
- obj
- A object to compare this instance against.
⊟ Returns
true if obj is a Cadenza.Tuple<T1, T2> and each member of obj and the current instance have the same value (according to EqualityComparer<T>.Equals(`0, `0)); otherwise false is returned.⊟ Remarks
This method checks for value equality (EqualityComparer<T>.Equals(`0, `0)), as defined by each value type.
Note: This method overrides object.Equals(object).⊟ Requirements
Namespace: Cadenza
Assembly: Cadenza (in Cadenza.dll)
Assembly Versions: 0.1.0.0
⊟ GetHashCode Method
Generates a hash code for the current instance.
public override int GetHashCode ()⊟ Returns
A int containing the hash code for this instance.⊟ Remarks
Note: This method overrides object.GetHashCode.⊟ Requirements
Namespace: Cadenza
Assembly: Cadenza (in Cadenza.dll)
Assembly Versions: 0.1.0.0
⊟ Item1 Property
The first tuple value.
public T1 Item1 { get; }⊟ Value
A T1 which is the first tuple value.⊟ Remarks
The first tuple value.⊟ Requirements
Namespace: Cadenza
Assembly: Cadenza (in Cadenza.dll)
Assembly Versions: 0.1.0.0
⊟ Item2 Property
The second tuple value.
public T2 Item2 { get; }⊟ Value
A T2 which is the second tuple value.⊟ Remarks
The second tuple value.⊟ Requirements
Namespace: Cadenza
Assembly: Cadenza (in Cadenza.dll)
Assembly Versions: 0.1.0.0
⊟ ToString Method
Returns a string representation of the value of the current instance.
public override string ToString ()⊟ Returns
A string representation of the value of the current instance.⊟ Remarks
Operation
Returns (, followed by a comma-separated list of the result of calling object.ToString on Tuple<T1, T2>.Item1, Tuple<T1, T2>.Item2, followed by ).⊟ Requirements
Namespace: Cadenza
Assembly: Cadenza (in Cadenza.dll)
Assembly Versions: 0.1.0.0